package com.example.service.webhook.business.security.entity;

import com.example.service.webhook.repository.base.Saveable;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

public class InsuranceEntity implements Saveable {
    private Long id;
    private String userId;
    // 用户关联id
    private String userInfoId;
    // 地区编码
    private String areaCode;
    // 参保类型
    private String  insuranceType;
    // 参保类型id
    private Integer insuranceCode;
    // 参保状态
    private int insuranceStatus;
    // 首次参保时间
    private String firstInsuredDate;
    // 本次参保时间
    private String thisInsuredDate;
    // 描述
    private String description;
    // 缴纳基数
    private Integer baseNumber;
    // 缴存单位
    private String corporationName;
    // 单位缴存
    private Integer monthlyCorporationIncome;
    // 个人缴存
    private Integer monthlyCustomerIncome;
    // 单位缴存比例
    private Double corporationScale;
    // 个人缴存比例
    private Double customerScale;
    // 连续缴存月数
    private int totalMonths;
    // 保留字段
    private String reserved;

	/**
	 * 保险id(险种)
	 * 20171019接口升级，增加字段
	 */
	private String insuranceId;

    private Date createTime;
    private Date lastModifyTime;

    private static final String[] keyColumns = { "id" };
    private static final String   tableName  = "t_insurance";

    @Override
    public String getTableName() {
        return tableName;
    }

    @Override
    public String[] getKeyColumns() {
        return keyColumns;
    }

    @Override
    public String getPrimaryVal() {
        return String.valueOf(id);
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserInfoId() {
		return userInfoId;
	}

	public void setUserInfoId(String userInfoId) {
		this.userInfoId = userInfoId;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getInsuranceType() {
		return insuranceType;
	}

	public void setInsuranceType(String insuranceType) {
		this.insuranceType = insuranceType;
	}

	public Integer getInsuranceCode() {
		return insuranceCode;
	}

	public void setInsuranceCode(Integer insuranceCode) {
		this.insuranceCode = insuranceCode;
	}

	public int getInsuranceStatus() {
		return insuranceStatus;
	}

	public void setInsuranceStatus(int insuranceStatus) {
		this.insuranceStatus = insuranceStatus;
	}

	public String getFirstInsuredDate() {
		return firstInsuredDate;
	}

	public void setFirstInsuredDate(String firstInsuredDate) {
		this.firstInsuredDate = firstInsuredDate;
	}

	public String getThisInsuredDate() {
		return thisInsuredDate;
	}

	public void setThisInsuredDate(String thisInsuredDate) {
		this.thisInsuredDate = thisInsuredDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getBaseNumber() {
		return baseNumber;
	}

	public void setBaseNumber(Integer baseNumber) {
		this.baseNumber = baseNumber;
	}

	public String getCorporationName() {
		return corporationName;
	}

	public void setCorporationName(String corporationName) {
		this.corporationName = corporationName;
	}

	public Integer getMonthlyCorporationIncome() {
		return monthlyCorporationIncome;
	}

	public void setMonthlyCorporationIncome(Integer monthlyCorporationIncome) {
		this.monthlyCorporationIncome = monthlyCorporationIncome;
	}

	public Integer getMonthlyCustomerIncome() {
		return monthlyCustomerIncome;
	}

	public void setMonthlyCustomerIncome(Integer monthlyCustomerIncome) {
		this.monthlyCustomerIncome = monthlyCustomerIncome;
	}

	public Double getCorporationScale() {
		return corporationScale;
	}

	public void setCorporationScale(Double corporationScale) {
		this.corporationScale = corporationScale;
	}

	public Double getCustomerScale() {
		return customerScale;
	}

	public void setCustomerScale(Double customerScale) {
		this.customerScale = customerScale;
	}

	public int getTotalMonths() {
		return totalMonths;
	}

	public void setTotalMonths(int totalMonths) {
		this.totalMonths = totalMonths;
	}

	public String getReserved() {
		return reserved;
	}

	public void setReserved(String reserved) {
		this.reserved = reserved;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public String getInsuranceId() {
		return insuranceId;
	}

	public void setInsuranceId(String insuranceId) {
		this.insuranceId = insuranceId;
	}
}
